CFLAGS=-Wall -O1

all: bin/tcp_client bin/tcp_server bin/udp_client bin/udp_server

bin/tcp_client: src/tcp_client.c
	gcc $(CFLAGS) -o $@ $<

bin/tcp_server: src/tcp_server.c
	gcc $(CFLAGS) -o $@ $<

bin/udp_client: src/udp_client.c
	gcc $(CFLAGS) -o $@ $<

bin/udp_server: src/udp_server.c
	gcc $(CFLAGS) -o $@ $<

.PHONY: all clean

clean:
	@rm -f bin/*